<?php

namespace app\common\model;

class FollowTrialExamine extends BaseModel
{
    protected $name = "follow_trial_examine";

    /**
     * 添加数据
     *
     * @param array $param
     * @return string
     */
    public function addData(array $param): string
    {
        //添加时销毁自带的主键id
        unset($param['id']);
        return $this->save($param);
    }

    /**
     * 更新数据
     * @param array $param
     * @return bool
     */
    public function saveData($id, array $param): bool
    {
        $model = self::find($id);
        return $model->save($param);
    }
}